@echo off
setlocal

:: 设置 Redis 主节点和从节点的目录
REM set MASTER_DIR=C:\Bob\app\redis\master
REM set SLAVE1_DIR=C:\Bob\app\redis\slave1
REM set SLAVE2_DIR=C:\Bob\app\redis\slave2

REM :: 设置 Redis Sentinel 的目录
REM set SENTINEL_DIR=C:\Bob\app\redis\sentinels


:: 关闭 Redis Sentinel 26379
echo Stopping Redis Sentinel 26379...
taskkill /IM redis-sentinel.exe /F

:: 关闭 Redis Sentinel 26380
echo Stopping Redis Sentinel 26380...
taskkill /IM redis-sentinel.exe /F

:: 关闭 Redis Sentinel 26381
echo Stopping Redis Sentinel 26381...
taskkill /IM redis-sentinel.exe /F

echo Redis and Sentinel shutdown complete!

endlocal
pause
